package block.inner;

/*
* 注意事项:
*   静态只能访问静态
* */
public class StaticInnerTest {
    public static void main(String[] args) {
//        OuterClass.InnerClass oi = new OuterClass.InnerClass();
//        oi.show();
        OuterClass.InnerClass.show();//方法加了static的调用


    }
}

class OuterClass{
    int num = 10;
    static int num2 =20;
    static class InnerClass{
        public static void show(){
            OuterClass o = new OuterClass();
            System.out.println(o.num);
            System.out.println("show");
        }
    }
}
